
import Vue from 'vue'
import Router from 'vue-router'

// 导入页面组件，按需加载,当渲染其他页面时才加载其组件,并缓存,减少首屏加载时间

// -----------用户端start------------
// const home = resolve => require(['@/views/home/index.vue'], resolve) // 首页
// const homeMessage = resolve => require(['@/views/home/message.vue'], resolve) // 首页-站内信
// const homeMessageInfo = resolve => require(['@/views/home/messageInfo.vue'], resolve) // 首页-站内信详情
const alliance = resolve => require(['@/views/alliance/index.vue'], resolve) // 联盟商家
const businessDetail = resolve => require(['@/views/alliance/detail.vue'], resolve) // 联盟商家详情
const businessInfo = resolve => require(['@/views/alliance/info.vue'], resolve) // 联盟商家详情
const test = resolve => require(['@/views/alliance/test.vue'], resolve) // 联盟商家详情
 const nearbyStore = resolve => require(['@/views/alliance/nearbyStore.vue'], resolve) // 附近门店
 const nearbyStoreDetail = resolve => require(['@/views/alliance/nearbyStoreDetail.vue'], resolve) // 附近门店详情
// const shopCart = resolve => require(['@/views/shopCart/index.vue'], resolve) // 购物车
const person = resolve => require(['@/views/person/index.vue'], resolve) // 个人中心
const personSetting = resolve => require(['@/views/person/setting.vue'], resolve) // 个人设置
// const login = resolve => require(['@/views/login/index.vue'], resolve) // 登录
// const auth = resolve => require(['@/views/login/auth.vue'], resolve) // 授权Token
// const smsLogin = resolve => require(['@/views/login/smsLogin.vue'], resolve) // 短信登录
// const register = resolve => require(['@/views/login/register.vue'], resolve) // 注册
// const forgetPassword = resolve => require(['@/views/login/forgetPassword.vue'], resolve) // 忘记密码
// const userProtocol = resolve => require(['@/views/login/userProtocol.vue'], resolve) // 用户协议
// const userPrivacy = resolve => require(['@/views/login/userPrivacy.vue'], resolve) // 用户隐私
// const businessDetail = resolve => require(['@/views/businessDetail/index.vue'], resolve) // 商家详情页
const buyBill = resolve => require(['@/views/businessDetail/buyBill.vue'], resolve) // 商家详情-买单页
const paySuccess = resolve => require(['@/views/businessDetail/paySuccess.vue'], resolve) // 商家详情-买单页
const clearCookie = resolve => require(['@/views/businessDetail/clearCookie.vue'], resolve) // 清除token
// const writeEvaluation = resolve => require(['@/views/businessDetail/writeEvaluation.vue'], resolve) // 商家详情-点评页
// const goodDetail = resolve => require(['@/views/businessDetail/goodDetail.vue'], resolve) // 商家详情-商品详情
const storeDiscountRatio = resolve => require(['@/views/businessDetail/storeDiscountRatio.vue'], resolve) //让利比例设置

// 2020-7-6新增
const scanToPay = resolve => require(['@/views/member/scanToPay.vue'], resolve) // 会员-扫码支付
const payList = resolve => require(['@/views/member/payList.vue'], resolve) // 会员-扫码记录
const payDetail = resolve => require(['@/views/member/payDetail.vue'], resolve) // 会员-支付详情

// 2021-2-21新增（快速下单）
const quickPlaceOrder = resolve => require(['@/views/quickPlaceOrder/index.vue'], resolve) // 快速下单-首页
const productDetail = resolve => require(['@/views/quickPlaceOrder/detail.vue'], resolve) // 快速下单-详情页
const retailDetail = resolve => require(['@/views/quickPlaceOrder/retailDetail.vue'], resolve) // 快速下单-零售详情页


// 2021-3-15新增（采购中心）
const purchaseCenter = resolve => require(['@/views/purchase/center.vue'], resolve) // 采购中心-个人中心
const purchaseOrder = resolve => require(['@/views/purchase/order.vue'], resolve) // 采购中心-采购下单
const purchaseDetail = resolve => require(['@/views/purchase/detail.vue'], resolve) // 采购中心-商品详情
const purchaseShareStore = resolve => require(['@/views/purchase/shareStore.vue'], resolve) // 采购中心-共享库存
const purchaseShareDetail = resolve => require(['@/views/purchase/shareDetail.vue'], resolve) // 采购中心-共享库存
const purchaseOrderList = resolve => require(['@/views/purchase/orderList.vue'], resolve) // 采购中心-订单列表
const purchaseStoreHome = resolve => require(['@/views/purchase/storeHome.vue'], resolve) // 采购中心-供应商店铺
const purchaseStoreSearchList = resolve => require(['@/views/purchase/storeSearchList.vue'], resolve) // 采购中心-供应商搜索结果
const purchaseShopCar = resolve => require(['@/views/purchase/car.vue'], resolve) // 购物车
const purchaseProductsubmitorder = resolve => require(['@/views/purchase/productsubmitorder.vue'], resolve) // 提交订单
const purchaseSuccess = resolve => require(['@/views/purchase/success.vue'], resolve) // 下单成功
const purchaseProductOrderDetail = resolve => require(['@/views/purchase/productOrderDetail.vue'], resolve) // 订单详情
const purchaseExpressDetail = resolve => require(['@/views/purchase/expressDetail.vue'], resolve) // 订单详情

// 2021-7-26新增（区域申请）
const areaApply = resolve => require(['@/views/areaApply/index.vue'], resolve) // 区域申请

// 2021-4-19新增（公共页面）
// const shopCar = resolve => require(['@/views/page/car.vue'], resolve) // 购物车
// const productsubmitorder = resolve => require(['@/views/page/productsubmitorder.vue'], resolve) // 提交订单
// const productOrderDetail = resolve => require(['@/views/page/productOrderDetail.vue'], resolve) // 订单详情
const address = resolve => require(['@/components/address/index.vue'], resolve) // 地址列表

// 2021-12-20新增 果语商品下单统计
const orderCount = resolve => require(['@/views/orderCount/index.vue'], resolve) // 商品下单统计
const orderCountMyTeam = resolve => require(['@/views/orderCount/myTeam.vue'], resolve) // 我的团队
const orderCountDetail = resolve => require(['@/views/orderCount/detail.vue'], resolve) // 详情

// -----------用户端end-----------------

// -----------商家端start------------------
const bussinessRegister = resolve => require(['@/views/bussinessRegister/index.vue'], resolve) // 商户入驻
const storeManage = resolve => require(['@/views/storeManage/index.vue'], resolve) // 我的门店
const storeInfo = resolve => require(['@/views/storeManage/info.vue'], resolve) // 我的门店-门店信息
const cashList = resolve => require(['@/views/storeManage/cashList.vue'], resolve) // 商家-收银列表
const cashDetail = resolve => require(['@/views/storeManage/cashDetail.vue'], resolve) // 商家-收银详情
const cashCode = resolve => require(['@/views/storeManage/cashCode.vue'], resolve) // 商家-收银二维码
const cashMPCode = resolve => require(['@/views/storeManage/cashMPCode.vue'], resolve) // 商家-收银小程序码
const wealthManage = resolve => require(['@/views/storeManage/wealthManage.vue'], resolve) // 商家-财富管理

const receiptRecord = resolve => require(['@/views/receiptRecord/index.vue'], resolve) // 收银记录
const receiptDetail = resolve => require(['@/views/receiptRecord/detail.vue'], resolve) // 收银详情
const memberManage = resolve => require(['@/views/memberManage/index.vue'], resolve) // 会员管理-会员列表
const memberDetail = resolve => require(['@/views/memberManage/detail.vue'], resolve) // 会员管理-会员详情
const memberInfo = resolve => require(['@/views/memberManage/info.vue'], resolve) // 会员管理-会员资料
// const memberEditInfo = resolve => require(['@/views/memberManage/editInfo.vue'], resolve) // 会员管理-编辑会员资料
// const bussinessSetting = resolve => require(['@/views/bussinessSetting/index.vue'], resolve) // 商户设置
// const bussinessEditInfo = resolve => require(['@/views/bussinessSetting/editInfo.vue'], resolve) // 商户设置-编辑商户资料
// const bussinessVerified = resolve => require(['@/views/bussinessSetting/verified.vue'], resolve) // 商户设置-实名认证
// const bussinessElectronicAgreement = resolve => require(['@/views/bussinessSetting/electronicAgreement.vue'], resolve) // 商户设置-电子协议
// const bussinessReceiptAcountManage = resolve => require(['@/views/bussinessSetting/receiptAcountManage/index.vue'], resolve) // 商户设置-收款账户管理
// const bussinessReceiptAcountManageAdd = resolve => require(['@/views/bussinessSetting/receiptAcountManage/add.vue'], resolve) // 商户设置-收款账户管理-新增
// const bussinessReceiptAcountManageEdit = resolve => require(['@/views/bussinessSetting/receiptAcountManage/edit.vue'], resolve) // 商户设置-收款账户管理-编辑
// const bussinessFunction = resolve => require(['@/views/bussinessSetting/function.vue'], resolve) // 商户设置-功能设置
// const bussinessReceiptQr = resolve => require(['@/views/bussinessSetting/receiptQr.vue'], resolve) // 商户设置-收款二维码

// 2020-7-1新增
const merchantPaper = resolve => require(['@/views/merchantPaper/index.vue'], resolve) // 商户进件-首页
const mainInfo = resolve => require(['@/views/merchantPaper/mainInfo.vue'], resolve) // 商户进件-主体信息
const manageInfo = resolve => require(['@/views/merchantPaper/manageInfo.vue'], resolve) // 商户进件-营业执照
const settlementRules = resolve => require(['@/views/merchantPaper/settlementRules.vue'], resolve) // 商户进件-结算规则
const bankCount = resolve => require(['@/views/merchantPaper/bankCount.vue'], resolve) // 商户进件-结算银行账户
const admin = resolve => require(['@/views/merchantPaper/admin.vue'], resolve) // 商户进件-超级管理员信息

const paperManage = resolve => require(['@/views/paperManage/index.vue'], resolve) // 进件管理-首页
const paperManageList = resolve => require(['@/views/paperManage/list.vue'], resolve) // 进件管理-列表
const paperManageSignCode = resolve => require(['@/views/paperManage/signCode.vue'], resolve) // 进件管理-签约二维码
const paperManageInfo = resolve => require(['@/views/paperManage/info.vue'], resolve) // 进件管理-商户信息

// 2020-12-23新增
const productManage = resolve => require(['@/views/productManage/index.vue'], resolve) // 商品管理-首页
const productManageNew = resolve => require(['@/views/productManage/productManage.vue'], resolve) // 新商品管理-首页
const productManageEdit = resolve => require(['@/views/productManage/productManageEdit.vue'], resolve) // 新商品管理-首页
const productDetailManage = resolve => require(['@/views/productManage/productDetailManage.vue'], resolve) // 商品管理-编辑
const productWriteoff = resolve => require(['@/views/productWriteoff/index.vue'], resolve) // 商品核销-首页
const productWriteoffRecord = resolve => require(['@/views/productWriteoff/record.vue'], resolve) // 商品核销-记录
const stockManage = resolve => require(['@/views/productManage/stockManage.vue'], resolve) //代理实物库存管理
const stockManageEdit = resolve => require(['@/views/productManage/stockManageEdit.vue'], resolve) // 库存编辑
// -----------商家端end---------------------

// -----------公共start---------------------
// const withdrawApply = resolve => require(['@/views/account/withdraw/withdrawApply.vue'], resolve) // 提现-提现申请
// const withdrawRecord = resolve => require(['@/views/account/withdraw/withdrawRecord.vue'], resolve) // 提现-提现记录
// const withdrawDetail = resolve => require(['@/views/account/withdraw/withdrawDetail.vue'], resolve) // 提现-提现详情

// const transferApply = resolve => require(['@/views/account/transfer/transferApply.vue'], resolve) // 转账-提交转账
// const transferRecord = resolve => require(['@/views/account/transfer/transferRecord.vue'], resolve) // 转账-转账记录
// const transferDetail = resolve => require(['@/views/account/transfer/transferDetail.vue'], resolve) // 转账-转账详情

// const accountDetail = resolve => require(['@/views/account/accountDetail/index.vue'], resolve) //账户明细

const profitReward = resolve => require(['@/views/account/reward/profitReward.vue'], resolve) // 奖励-收银分润
const integrationReward = resolve => require(['@/views/account/reward/integrationReward.vue'], resolve) // 奖励-积分分红
const cashReward = resolve => require(['@/views/account/reward/cashReward.vue'], resolve) // 奖励-收银分红奖励
const blueChipRank = resolve => require(['@/views/account/reward/blueChipRank.vue'], resolve) // 奖励-绩优排位奖
const rankDetail = resolve => require(['@/views/account/reward/rankDetail.vue'], resolve) // 奖励-排位奖详情
const RewardHonorManage = resolve => require(['@/views/account/reward/rewardHonorManage.vue'], resolve) // 奖励-销售先锋奖励排行
const pendingReward = resolve => require(['@/views/account/reward/pendingReward.vue'], resolve) // 奖励-销售先锋奖励排行
const partnerReward = resolve => require(['@/views/account/reward/partnerReward.vue'], resolve) // 奖励-销售先锋奖励排行
const reconcilia = resolve => require(['@/views/account/bill/reconcilia.vue'], resolve) // 奖励-销售先锋奖励排行
const performance = resolve => require(['@/views/account/performance/index.vue'], resolve) // 业绩考核
const statistical = resolve => require(['@/views/statistical/index.vue'], resolve) // 数据统计

const notFound = resolve => require(['@/views/notFound/index.vue'], resolve) // 404
const fission = resolve => require(['@/views/fission/index.vue'], resolve) // 裂变海报
const remind = resolve => require(['@/views/fission/remind.vue'], resolve) // 裂变海报提醒
const rankingList = resolve => require(['@/views/fission/rankingList.vue'], resolve) // 签到排名
const referrer = resolve => require(['@/views/referrer/index.vue'], resolve) // 推荐人
const superior = resolve => require(['@/views/referrer/index.vue'], resolve) // 上级
const invitePlaces = resolve => require(['@/views/invitePlaces/index.vue'], resolve) // 邀请名额
// -----------公共end---------------------

// -----------海南东隅start---------------------
const home = resolve => require(['@/views/hndy/home.vue'], resolve) // 首页
const agentManage = resolve => require(['@/views/hndy/agentManage.vue'], resolve) // 代理管理
const agentInvite = resolve => require(['@/views/hndy/agentInvite.vue'], resolve) // 代理管理邀请
const update = resolve => require(['@/views/hndy/update.vue'], resolve) // 申请调级
const userCenter = resolve => require(['@/views/hndy/userCenter.vue'], resolve) // 个人中心
const mgAccount = resolve => require(['@/views/hndy/account.vue'], resolve) //  我的账户
const paymentList = resolve => require(['@/views/hndy/paymentList.vue'], resolve) //  货款明细
const wallet = resolve => require(['@/views/hndy/wallet.vue'], resolve) //  我的钱包
// -----------海南东隅end---------------------

// ------------共享茶室start---------------------
const teaList = resolve => require(['@/views/teaHouse/list.vue'], resolve) // 商品
const orderSubmit = resolve => require(['@/views/teaHouse/orderSubmit.vue'], resolve) // 商品详情-预约(房间)
const teaOrderSubmit = resolve => require(['@/views/teaHouse/teaOrderSubmit.vue'], resolve) // 商品详情-预约(茶室)
const roomOrderList = resolve => require(['@/views/teaHouse/orderList.vue'], resolve) // 预约订单列表(房间)
const teaOrderList = resolve => require(['@/views/teaHouse/teaOrderList.vue'], resolve) // 预约订单列表(茶室)
const teaOrderDetail = resolve => require(['@/views/teaHouse/orderDetail.vue'], resolve) // 订单详情
// ------------共享茶室end-----------------------

// -----------黑森林start---------------------
const shopProductList = resolve => require(['@/views/shopProductList/index.vue'], resolve) // 门店商品列表
const nearbyShop = resolve => require(['@/views/shopProductList/nearbyShop.vue'], resolve) // 附近门店选择+地图标记
//const shopList = resolve => require(['@/components/nearbyShop/index.vue'], resolve) // 附近门店
const nearbyShopCopy = resolve => require(['@/views/shopProductList/nearbyShopCopy.vue'], resolve)
// -----------黑森林end---------------------
// -----------新批发商品列表页start---------------------
const newProductList = resolve => require(['@/views/newProductList/index.vue'], resolve) // 门店商品列表
// -----------新批发商品列表页end---------------------

// 2023-03-23 新增（扫码点餐）
const orderMeal = resolve => require(['@/views/orderMeal/index.vue'], resolve) // 扫码点餐-首页
const mealOrderDetail = resolve => require(['@/views/orderMeal/orderDetail.vue'], resolve) // 扫码点餐-详情页
const confirmOrder = resolve => require(['@/views/orderMeal/confirmOrder.vue'], resolve) // 扫码点餐-确认订单
const placeOrder = resolve => require(['@/views/orderMeal/placeOrder.vue'], resolve) // 扫码点餐-提交订单
const mealPayResult = resolve => require(['@/views/orderMeal/payResult.vue'], resolve) // 扫码点餐-支付结果页面
const mealAllOrder = resolve => require(['@/views/orderMeal/order.vue'], resolve) // 扫码点餐-我的订单列表
// 2023-03-30 新增（扫码点餐管理）
const tableAdmin = resolve => require(['@/views/orderMealAdmin/tableAdmin.vue'], resolve) // 桌号管理-首页
const tableType = resolve => require(['@/views/orderMealAdmin/tableType.vue'], resolve) // 桌型管理-首页
const mealAdminEdit = resolve => require(['@/views/orderMealAdmin/mealAdminEdit.vue'], resolve) // 新商品管理-首页
const tableDetailManage = resolve => require(['@/views/orderMealAdmin/tableDetailManage.vue'], resolve) // 商品管理-编辑
const mealFullDecrement = resolve => require(['@/views/orderMealAdmin/fullDecrement.vue'], resolve) // 满减金额活动
const mealNewDiscount = resolve => require(['@/views/orderMealAdmin/newDiscount.vue'], resolve) // 新人优惠设置
const mealPromotion = resolve => require(['@/views/orderMealAdmin/promotion.vue'], resolve) // 促销活动
const mealCheckProduct = resolve => require(['@/views/orderMealAdmin/checkProduct.vue'], resolve) // 促销活动
const mendianOrder = resolve => require(['@/views/orderMealAdmin/mendianOrder.vue'], resolve) // 扫码点餐-门店订单管理


// 2022-01-10  礼遇泉州 提货卡
const deliveryCard = resolve => require(['@/views/deliveryCard/index.vue'], resolve) // 提货卡首页
const deliveryCardList = resolve => require(['@/views/deliveryCard/list.vue'], resolve) // 提货卡记录
const starCouponList = resolve => require(['@/views/deliveryCard/starCouponList.vue'], resolve) // 星券列表

// 2023-04-11  上门理疗 预约到家
const physioMyOrder = resolve => require(['@/views/physio/myOrder.vue'], resolve) // 上门理疗-我的订单列表
const physioList = resolve => require(['@/views/physio/list.vue'], resolve) // 上门理疗-技师列表
const telList = resolve => require(['@/views/physio/tellist.vue'], resolve) // 上门理疗-技师列表
const physioCouponList = resolve => require(['@/views/physio/coupon.vue'], resolve) // 上门理疗-优惠券列表
const physioOrderDetail = resolve => require(['@/views/physio/orderDetail.vue'], resolve) // 上门理疗-订单详情
const physioTechnicianDetail = resolve => require(['@/views/physio/technicianDetail.vue'], resolve) // 上门理疗-技师详情
const physioValuationList = resolve => require(['@/views/physio/valuationList.vue'], resolve) // 上门理疗-评论列表
const physioApplyTechnician = resolve => require(['@/views/physio/applyTechnician.vue'], resolve) // 上门理疗-申请技师
const physioSubmitOrder = resolve => require(['@/views/physio/submitOrder.vue'], resolve) // 上门理疗-提交订单
const physioEvaluation = resolve => require(['@/views/physio/evaluation.vue'], resolve) // 上门理疗-立即评价
const physioServiceDetail = resolve => require(['@/views/physio/serviceDetail.vue'], resolve) // 上门理疗-项目详情
const physioCertificate = resolve => require(['@/views/physio/certificate.vue'], resolve) // 上门理疗-资质证书
const physioInviteCode = resolve => require(['@/views/physio/inviteCode.vue'], resolve) // 上门理疗-邀请码

//2023-05-18 技师端
const physioArtificerOrderList = resolve => require(['@/views/physioArtificer/orderList.vue'], resolve) // 订单列表
const physioArtificerMy = resolve => require(['@/views/physioArtificer/my.vue'], resolve) // 个人中心
const physioArtificerTimeSetting = resolve => require(['@/views/physioArtificer/timeSetting.vue'], resolve) // 接单时间设定
const physioWriteoff = resolve => require(['@/views/physioArtificer/writeOff.vue'], resolve) // 核销

//2023-06-17 -----------鲁艺共享酒店 酒店管理start---------------------
const roomManageAddCheckIn = resolve => require(['@/views/roomManage/addCheckIn.vue'], resolve) // 添加入住人
const roomManageCheckIn = resolve => require(['@/views/roomManage/checkIn.vue'], resolve) // 管理入住人
const roomManageOrderDetail = resolve => require(['@/views/roomManage/orderDetail.vue'], resolve) // 订单详情
const roomManageOrderList = resolve => require(['@/views/roomManage/orderList.vue'], resolve) // 订单列表
const roomManageRoomList = resolve => require(['@/views/roomManage/roomList.vue'], resolve) // 房间列表
const roomManageDirtyRoomList = resolve => require(['@/views/roomManage/dirtyRoomList.vue'], resolve) //脏房列表
const reserveSetting = resolve => require(['@/views/roomManage/reserveSetting.vue'], resolve) //预定配置
const reserveSettingList = resolve => require(['@/views/roomManage/reserveSettingList.vue'], resolve) //预定配置列表
const addRoom = resolve => require(['@/views/roomManage/addRoom.vue'], resolve) //添加房间
const qrcodeOpenDoor = resolve => require(['@/views/roomManage/qrcodeOpenDoor.vue'], resolve) // 二维码开门
// -----------鲁艺共享酒店 酒店管理end---------------------

//2023-08-02 商品列表
const productList = resolve => require(['@/views/retail/index.vue'], resolve) //商品列表(零售场景)
const seckillList = resolve => require(['@/views/retail/seckillList.vue'], resolve) //秒杀列表
const groupList = resolve => require(['@/views/retail/groupList.vue'], resolve) //拼团列表
const seckillDetail = resolve => require(['@/views/retail/seckillDetail.vue'], resolve) //秒杀详情
const promotionList = resolve => require(['@/views/retail/promotionList.vue'], resolve) //促销活动列表
const bigWheelList = resolve => require(['@/views/retail/bigWheelList.vue'], resolve) //大转盘列表


//供应商
const applySupplier = resolve => require(['@/views/supplier/apply.vue'], resolve) //供应商申请

//付款码
const payCode = resolve => require(['@/views/payCode/index.vue'], resolve) //付款码

//调拨
const applyAllocation = resolve => require(['@/views/allocation/apply.vue'], resolve) //申请调拨
const allocationRecord = resolve => require(['@/views/allocation/record.vue'], resolve) //调拨记录
const allocationDetail = resolve => require(['@/views/allocation/detail.vue'], resolve) //调拨详情
const allocationShipRecord = resolve => require(['@/views/allocation/shippingRecord.vue'], resolve) //调拨发货记录

const polymerization = resolve => require(['@/views/polymerization/index.vue'], resolve) // 聚合页面 

const accountApply = resolve => require(['@/views/accountApply/index.vue'], resolve) // 区域申请

//一客一价
const customer = resolve => require(['@/views/customer/add.vue'], resolve) //添加商品
const quotation = resolve => require(['@/views/customer/quotation.vue'], resolve) //添加商品
const customerSubmitOrder = resolve => require(['@/views/customer/submitOrder.vue'], resolve) //提交订单
const customerList = resolve => require(['@/views/customer/list.vue'], resolve) //会员列表
const customerRecord = resolve => require(['@/views/customer/record.vue'], resolve) //一客一价记录
const customerProduct = resolve => require(['@/views/customer/productList.vue'], resolve) //商品列表
const customerPay = resolve => require(['@/views/customer/customerPay.vue'], resolve) //支付列表
const paySucceed = resolve => require(['@/views/customer/paySucceed.vue'], resolve) //支付成功
const bills = resolve => require(['@/views/customer/bills.vue'], resolve) //支付成功
const addmember = resolve => require(['@/views/customer/addmember.vue'], resolve) //新增会员



Vue.use(Router)

const router = new Router({
  // mode: 'history', //路由模式
  routes: [
    // 用户端
    {
      path: '/',
      redirect: '/home'
    },
    // 共享茶室
    {
      path: '/teaList/:id',
      name: 'teaList',
      component: teaList,
      meta: {
        keepAlive: false
      }
    },
    {
      path: '/orderSubmit',
      name: 'orderSubmit',
      component: orderSubmit,
      meta: {
        keepAlive: false
      }
    },
		{
      path: '/teaOrderSubmit',
      name: 'teaOrderSubmit',
      component: teaOrderSubmit,
      meta: {
        keepAlive: false
      }
    },
		{
      path: '/roomOrderList',
      name: 'roomOrderList',
      component: roomOrderList,
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/teaOrderList',
      name: 'teaOrderList',
      component: teaOrderList,
      meta: {
        keepAlive: true
      }
    },
		{
      path: '/teaOrderDetail',
      name: 'teaOrderDetail',
      component: teaOrderDetail,
      meta: {
        keepAlive: false
      }
    },
    // 海南东隅定制页面
    {
      path: '/home',
      name: 'home',
      component: home,
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/agentManage',
      name: 'agentManage',
      component: agentManage,
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/agentInvite',
      name: 'agentInvite',
      component: agentInvite,
      meta: {
        keepAlive: false
      }
    },
    {
      path: '/update',
      name: 'update',
      component: update,
      meta: {
        keepAlive: false
      }
    },
    {
      path: '/user/center',
      name: 'userCenter',
      component: userCenter,
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/user/account',
      name: 'mgAccount',
      component: mgAccount,
      meta: {
        keepAlive: false
      }
    },
    {
      path: '/user/paymentList',
      name: 'paymentList',
      component: paymentList,
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/user/wallet',
      name: 'wallet',
      component: wallet,
      meta: {
        keepAlive: true
      }
    },
    // {
    //   path: '/home/message',
    //   name: 'homeMessage',
    //   component: homeMessage,
    //   meta: {
    //     keepAlive: true
    //   }
    // },
    // {
    //   path: '/home/messageInfo/:id',
    //   name: 'homeMessageInfo',
    //   component: homeMessageInfo,
    //   meta: {
    //     keepAlive: false
    //   }
    // },
    {
      path: '/deliveryCard',
      name: 'deliveryCard',
      component: deliveryCard,
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/deliveryCard/list',
      name: 'deliveryCardList',
      component: deliveryCardList,
      meta: {
        keepAlive: false
      }
    },
		{
      path: '/deliveryCard/starCouponList',
      name: 'starCouponList',
      component: starCouponList,
      meta: {
        keepAlive: false
      }
    },
    {
      path: '/orderCount',
      name: 'orderCount',
      component: orderCount,
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/orderCount/myTeam/:productId',
      name: 'orderCountMyTeam',
      component: orderCountMyTeam,
      meta: {
        keepAlive: false
      }
    },
    {
      path: '/orderCount/detail',
      name: 'orderCountDetail',
      component: orderCountDetail,
      meta: {
        keepAlive: false
      }
    },
    {
      path: '/alliance',
      name: 'alliance',
      component: alliance,
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/fission',
      name: 'fission',
      component: fission,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/remind',
      name: 'remind',
      component: remind,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/rankingList',
      name: 'rankingList',
      component: rankingList,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/referrer',
      name: 'referrer',
      component: referrer,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/superior',
      name: 'superior',
      component: superior,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/invitePlaces',
      name: 'invitePlaces',
      component: invitePlaces,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    // {
    //   path: '/shopCar',
    //   name: 'shopCar',
    //   component: shopCar,
    //   meta: {
    //     keepAlive: false
    //   }
    // },

    // {
    //   path: '/productsubmitorder',
    //   name: 'productsubmitorder',
    //   component: productsubmitorder,
    //   meta: {
    //     keepAlive: false
    //   }
    // },
    // {
    //   path: '/productOrderDetail/:id',
    //   name: 'productOrderDetail',
    //   component: productOrderDetail,
    //   meta: {
    //     keepAlive: false
    //   }
    // },
    {
      path: '/person',
      name: 'person',
      component: person,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/user/address',
      name: 'address',
      component: address,
      meta: {
        keepAlive: true,
        requireLogin: true
      }
    },
    {
      path: '/test',
      name: 'test',
      component: test,
      meta: {
        keepAlive: true,
        requireLogin: false
      }
    },
    {
      path: '/person/setting',
      name: 'personSetting',
      component: personSetting,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    // {
    //   path: '/login',
    //   name: 'login',
    //   component: login,
    //   meta: {
    //     keepAlive: false
    //   }
    // },
    // {
    //   path: '/auth',
    //   name: 'auth',
    //   component: auth,
    //   meta: {
    //     keepAlive: false
    //   }
    // },
    // {
    //   path: '/smsLogin',
    //   name: 'smsLogin',
    //   component: smsLogin,
    //   meta: {
    //     keepAlive: false
    //   }
    // },
    // {
    //   path: '/register',
    //   name: 'register',
    //   component: register,
    //   meta: {
    //     keepAlive: false
    //   }
    // },
    // {
    //   path: '/forgetPassword',
    //   name: 'forgetPassword',
    //   component: forgetPassword,
    //   meta: {
    //     keepAlive: false
    //   }
    // },
    // {
    //   path: '/userProtocol',
    //   name: 'userProtocol',
    //   component: userProtocol,
    //   meta: {
    //     keepAlive: true
    //   }
    // },
    // {
    //   path: '/userPrivacy',
    //   name: 'userPrivacy',
    //   component: userPrivacy,
    //   meta: {
    //     keepAlive: true
    //   }
    // },
     {
       path: '/nearbyStore',
       name: 'nearbyStore',
       component: nearbyStore,
       meta: {
         keepAlive: true
       }
     },
     {
       path: '/nearbyStoreDetail/:id',
       name: 'nearbyStoreDetail',
       component: nearbyStoreDetail,
       meta: {
         keepAlive: true
       }
     },
    {
      path: '/businessDetail/:id',
      name: 'businessDetail',
      component: businessDetail,
      meta: {
        keepAlive: false
      }
    },
    {
      path: '/businessInfo/:id',
      name: 'businessInfo',
      component: businessInfo,
      meta: {
        keepAlive: false
      }
    },
    {
      path: '/shopProductList/:id',
      name: 'shopProductList',
      component: shopProductList,
      meta: {
        keepAlive: false
      }
    },
    {
      path: '/newProductList',
      name: 'newProductList',
      component: newProductList,
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/nearbyShop',
      name: 'nearbyShop',
      component: nearbyShop,
      meta: {
        keepAlive: false
      }
    },
		{
      path: '/nearbyShopCopy',
      name: 'nearbyShopCopy',
      component: nearbyShopCopy,
      meta: {
        keepAlive: false
      }
    },
    {
      path: '/buyBill/:id',
      name: 'buyBill',
      component: buyBill,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/paySuccess',
      name: 'paySuccess',
      component: paySuccess,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/clearCookie',
      name: 'clearCookie',
      component: clearCookie,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/storeDiscountRatio',
      name: 'storeDiscountRatio',
      component: storeDiscountRatio,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    // {
    //   path: '/writeEvaluation',
    //   name: 'writeEvaluation',
    //   component: writeEvaluation,
    //   meta: {
    //     keepAlive: false,
    //     requireLogin: true
    //   }
    // },
    // {
    //   path: '/goodDetail',
    //   name: 'goodDetail',
    //   component: goodDetail,
    //   meta: {
    //     keepAlive: false
    //   }
    // },
    // {
    //   path: '/alliance',
    //   name: 'alliance',
    //   // route level code-splitting
    //   // this generates a separate chunk (about.[hash].js) for this route
    //   // which is lazy-loaded when the route is visited.
    //   component: () => import(/* webpackChunkName: "about" */ '@/views/alliance/index')
    // }

    // 2020-7-6新增
    {
      path: '/member/scanToPay',
      name: 'scanToPay',
      component: scanToPay,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },

    {
      path: '/member/list',
      name: 'payList',
      component: payList,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/member/detail/:id',
      name: 'payDetail',
      component: payDetail,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    // 快速下单
    {
      path: '/quickPlaceOrder',
      name: 'quickPlaceOrder',
      component: quickPlaceOrder,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/quickPlaceOrder/detail/:id',
      name: 'productDetail',
      component: productDetail,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/quickPlaceOrder/retailDetail/:id',
      name: 'retailDetail',
      component: retailDetail,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },

    // 采购中心
    {
      path: '/purchase',
      name: 'purchaseCenter',
      component: purchaseCenter,
      meta: {
        keepAlive: false,
        requireLogin: true
      }    
    },
    {
      path: '/purchase/order',
      name: 'purchaseOrder',
      component: purchaseOrder,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/purchase/detail/:id',
      name: 'purchaseDetail',
      component: purchaseDetail,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/purchase/shareStore',
      name: 'purchaseShareStore',
      component: purchaseShareStore,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },

    {
      path: '/purchase/car',
      name: 'purchaseShopCar',
      component: purchaseShopCar,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/purchase/expressDetail',
      name: 'purchaseExpressDetail',
      component: purchaseExpressDetail,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/purchase/productsubmitorder/:ids',
      name: 'purchaseProductsubmitorder',
      component: purchaseProductsubmitorder,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/purchase/success/:ordId',
      name: 'purchaseSuccess',
      component: purchaseSuccess,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/purchase/productOrderDetail/:ordId',
      name: 'purchaseProductOrderDetail',
      component: purchaseProductOrderDetail,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },

    {
      path: '/purchase/shareDetail/:id',
      name: 'purchaseShareDetail',
      component: purchaseShareDetail,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },

    {
      path: '/purchase/orderList/:type',
      name: 'purchaseOrderList',
      component: purchaseOrderList,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/purchase/StoreHome/:id',
      name: 'purchaseStoreHome',
      component: purchaseStoreHome,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/purchase/StoreSearchList/:obj',
      name: 'purchaseStoreSearchList',
      component: purchaseStoreSearchList,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },

    // 商户端
    {
      path: '/bussinessRegister',
      name: 'bussinessRegister',
      component: bussinessRegister,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/storeManage',
      name: 'storeManage',
      component: storeManage,
      meta: {
        keepAlive: true,
        requireLogin: true
      }
    },
    {
      path: '/storeManage/info/:id',
      name: 'storeInfo',
      component: storeInfo,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/storeManage/cashList',
      name: 'cashList',
      component: cashList,
      meta: {
        keepAlive: true,
        requireLogin: true
      }
    },
    {
      path: '/storeManage/cashDetail/:id',
      name: 'cashDetail',
      component: cashDetail,
      meta: {
        // keepAlive: true,
        requireLogin: true
      }
    },
    {
      path: '/storeManage/cashCode',
      name: 'cashCode',
      component: cashCode,
      meta: {
        keepAlive: true,
        requireLogin: true
      }
    },
    {
      path: '/storeManage/cashMPCode',
      name: 'cashMPCode',
      component: cashMPCode,
      meta: {
        keepAlive: true,
        requireLogin: true
      }
    },
    {
      path: '/storeManage/wealthManage',
      name: 'wealthManage',
      component: wealthManage,
      meta: {
        keepAlive: true,
        requireLogin: true
      }
    },
    {
      path: '/receiptRecord',
      name: 'receiptRecord',
      component: receiptRecord,
      meta: {
        keepAlive: true,
        requireLogin: true
      }
    },
    {
      path: '/receiptRecord/detail/:id',
      name: 'receiptDetail',
      component: receiptDetail,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/memberManage',
      name: 'memberManage',
      component: memberManage,
      meta: {
        keepAlive: true,
        requireLogin: true
      }
    },
    {
      path: '/memberManage/detail/:id',
      name: 'memberDetail',
      component: memberDetail,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/memberManage/info/:UserId',
      // path: '/memberManage/info',
      name: 'memberInfo',
      component: memberInfo,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    // {
    //   path: '/memberManage/editInfo',
    //   name: 'memberEditInfo',
    //   component: memberEditInfo,
    //   meta: {
    //     keepAlive: false,
    //     requireLogin: true
    //   }
    // },
    // {
    //   path: '/bussinessSetting',
    //   name: 'bussinessSetting',
    //   component: bussinessSetting,
    //   meta: {
    //     keepAlive: true,
    //     requireLogin: true
    //   }
    // },
    // {
    //   path: '/bussinessSetting/editInfo',
    //   name: 'bussinessEditInfo',
    //   component: bussinessEditInfo,
    //   meta: {
    //     keepAlive: false,
    //     requireLogin: true
    //   }
    // },
    // {
    //   path: '/bussinessSetting/verified',
    //   name: 'bussinessVerified',
    //   component: bussinessVerified,
    //   meta: {
    //     keepAlive: false,
    //     requireLogin: true
    //   }
    // },
    // {
    //   path: '/bussinessSetting/electronicAgreement',
    //   name: 'bussinessElectronicAgreement',
    //   component: bussinessElectronicAgreement,
    //   meta: {
    //     keepAlive: false,
    //     requireLogin: true
    //   }
    // },
    // {
    //   path: '/bussinessSetting/receiptAcountManage',
    //   name: 'bussinessReceiptAcountManage',
    //   component: bussinessReceiptAcountManage,
    //   meta: {
    //     keepAlive: true,
    //     requireLogin: true
    //   }
    // },
    // {
    //   path: '/bussinessSetting/receiptAcountManage/add',
    //   name: 'bussinessReceiptAcountManageAdd',
    //   component: bussinessReceiptAcountManageAdd,
    //   meta: {
    //     keepAlive: false,
    //     requireLogin: true
    //   }
    // },
    // {
    //   path: '/bussinessSetting/receiptAcountManage/edit',
    //   name: 'bussinessReceiptAcountManageEdit',
    //   component: bussinessReceiptAcountManageEdit,
    //   meta: {
    //     keepAlive: false,
    //     requireLogin: true
    //   }
    // },
    // {
    //   path: '/bussinessSetting/function',
    //   name: 'bussinessFunction',
    //   component: bussinessFunction,
    //   meta: {
    //     keepAlive: false,
    //     requireLogin: true
    //   }
    // },
    // {
    //   path: '/bussinessSetting/receiptQr',
    //   name: 'bussinessReceiptQr',
    //   component: bussinessReceiptQr,
    //   meta: {
    //     keepAlive: false,
    //     requireLogin: true
    //   }
    // },

    // 2020-7-1新增
    {
      path: '/merchantPaper',
      name: 'merchantPaper',
      component: merchantPaper,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/merchantPaper/mainInfo',
      name: 'mainInfo',
      component: mainInfo,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/merchantPaper/manageInfo',
      name: 'manageInfo',
      component: manageInfo,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/merchantPaper/settlementRules',
      name: 'settlementRules',
      component: settlementRules,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/merchantPaper/bankCount',
      name: 'bankCount',
      component: bankCount,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/merchantPaper/admin',
      name: 'admin',
      component: admin,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/paperManage',
      name: 'paperManage',
      component: paperManage,
      meta: {
        keepAlive: true,
        requireLogin: true
      }
    },
    {
      path: '/paperManage/list/:Status',
      name: 'paperManageList',
      component: paperManageList,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/paperManage/SignCode',
      name: 'paperManageSignCode',
      component: paperManageSignCode,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/paperManage/Info',
      name: 'paperManageInfo',
      component: paperManageInfo,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },

    // 公共
    // {
    //   path: '/withdraw/apply',
    //   name: 'withdrawApply',
    //   component: withdrawApply,
    //   meta: {
    //     keepAlive: false,
    //     requireLogin: true
    //   }
    // },
    // {
    //   path: '/withdraw/record',
    //   name: 'withdrawRecord',
    //   component: withdrawRecord,
    //   meta: {
    //     keepAlive: false,
    //     requireLogin: true
    //   }
    // },
    // {
    //   path: '/withdraw/detail',
    //   name: 'withdrawDetail',
    //   component: withdrawDetail,
    //   meta: {
    //     keepAlive: false,
    //     requireLogin: true
    //   }
    // },

    // {
    //   path: '/transfer/apply',
    //   name: 'transferApply',
    //   component: transferApply,
    //   meta: {
    //     keepAlive: false,
    //     requireLogin: true
    //   }
    // },
    // {
    //   path: '/transfer/record',
    //   name: 'transferRecord',
    //   component: transferRecord,
    //   meta: {
    //     keepAlive: false,
    //     requireLogin: true
    //   }
    // },
    // {
    //   path: '/transfer/detail',
    //   name: 'transferDetail',
    //   component: transferDetail,
    //   meta: {
    //     keepAlive: false,
    //     requireLogin: true
    //   }
    // },

    {
      path: '/reward/profitReward',
      name: 'profitReward',
      component: profitReward,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/areaApply',
      name: 'areaApply',
      component: areaApply,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/accountApply',
      name: 'accountApply',
      component: accountApply,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/customer',
      name: 'customer',
      component: customer,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/quotation',
      name: 'quotation',
      component: quotation,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/customerPay',
      name: 'customerPay',
      component: customerPay,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/customerList',
      name: 'customerList',
      component: customerList,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/customerSubmitOrder',
      name: 'customerSubmitOrder',
      component: customerSubmitOrder,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/paySucceed',
      name: 'paySucceed',
      component: paySucceed,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/bills',
      name: 'bills',
      component: bills,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/addmember',
      name: 'addmember',
      component: addmember,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/customerRecord',
      name: 'customerRecord',
      component: customerRecord,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/customerProduct',
      name: 'customerProduct',
      component: customerProduct,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/reward/integrationReward',
      name: 'integrationReward',
      component: integrationReward,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/reward/cashReward/:type',
      name: 'cashReward',
      component: cashReward,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/reward/blueChipRank',
      name: 'blueChipRank',
      component: blueChipRank,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/reward/rankDetail',
      name: 'rankDetail',
      component: rankDetail,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/reward/RewardHonorManage/:settingId',
      name: 'RewardHonorManage',
      component: RewardHonorManage,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/reward/pendingReward',
      name: 'pendingReward',
      component: pendingReward,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/reward/partnerReward',
      name: 'partnerReward',
      component: partnerReward,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/bill/reconcilia',
      name: 'reconcilia',
      component: reconcilia,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/performance/index',
      name: 'performance',
      component: performance,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/statistical/index',
      name: 'statistical',
      component: statistical,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/productManage',
      name: 'productManage',
      component: productManage,
      meta: {
        keepAlive: true,
        requireLogin: true
      }
    },
    {
      path: '/productManageNew',
      name: 'productManageNew',
      component: productManageNew,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/stockManage',
      name: 'stockManage',
      component: stockManage,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/stockManageEdit',
      name: 'stockManageEdit',
      component: stockManageEdit,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/productManage/productManageEdit/:id',
      name: 'productManageEdit',
      component: productManageEdit,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/productManage/productDetailManage/:params',
      name: 'productDetailManage',
      component: productDetailManage,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/productWriteoff',
      name: 'productWriteoff',
      component: productWriteoff,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/productWriteoff/record',
      name: 'productWriteoffRecord',
      component: productWriteoffRecord,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    // {
    //   path: '/accountDetail',
    //   name: 'accountDetail',
    //   component: accountDetail,
    //   meta: {
    //     keepAlive: false,
    //     requireLogin: true
    //   }
    // }

    // 扫码点餐
    {
      path: '/orderMeal/:id',
      name: 'orderMeal',
      component: orderMeal,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/confirmOrder',
      name: 'confirmOrder',
      component: confirmOrder,
      meta: {
        keepAlive: false,
      }
    },
    {
      path: '/placeOrder',
      name: 'placeOrder',
      component: placeOrder,
      meta: {
        keepAlive: false,
				requireLogin: true
      }
    },
    {
      path: '/mealPayResult/:payState',
      name: 'mealPayResult',
      component: mealPayResult,
      meta: {
        keepAlive: false,
				requireLogin: true
      }
    },
    {
      path: '/mealAllOrder',
      name: 'mealAllOrder',
      component: mealAllOrder,
      meta: {
        keepAlive: false,
				requireLogin: true
      }
    },		
    {
      path: '/mealOrderDetail/:id',
      name: 'mealOrderDetail',
      component: mealOrderDetail,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		// 扫码点餐桌子管理后台
    {
      path: '/tableAdmin',
      name: 'tableAdmin',
      component: tableAdmin,
      meta: {
        keepAlive: true,
        requireLogin: true
      }
    },
    {
      path: '/tableType',
      name: 'tableType',
      component: tableType,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/orderMealAdmin/mealAdminEdit/:id',
      name: 'mealAdminEdit',
      component: mealAdminEdit,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/orderMealAdmin/tableDetailManage/:params',
      name: 'tableDetailManage',
      component: tableDetailManage,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/mealNewDiscount',
      name: 'mealNewDiscount',
      component: mealNewDiscount,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },  
    {
      path: '/mealPromotion',
      name: 'mealPromotion',
      component:mealPromotion,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/mealCheckProduct/:type',
      name: 'mealCheckProduct',
      component:mealCheckProduct,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/mealFullDecrement',
      name: 'mealFullDecrement',
      component: mealFullDecrement,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/mendianOrder',
      name: 'mendianOrder',
      component: mendianOrder,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },

		
		{
      path: '/physioMyOrder',
      name: 'physioMyOrder',
      component: physioMyOrder,
      meta: {
        keepAlive: true,
        requireLogin: true
      }
    },
    {
      path: '/physioList',
      name: 'physioList',
      component: physioList,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/physioList',
      name: 'physioList',
      component: physioList,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/telList',
      name: 'telList',
      component: telList,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/physioCouponList',
      name: 'physioCouponList',
      component: physioCouponList,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/physioOrderDetail',
      name: 'physioOrderDetail',
      component: physioOrderDetail,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },				
		{
      path: '/physioTechnicianDetail',
      name: 'physioTechnicianDetail',
      component: physioTechnicianDetail,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/physioValuationList',
      name: 'physioValuationList',
      component: physioValuationList,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },		
		{
      path: '/physioApplyTechnician',
      name: 'physioApplyTechnician',
      component: physioApplyTechnician,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/physioSubmitOrder/:id',
      name: 'physioSubmitOrder',
      component: physioSubmitOrder,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/physioEvaluation',
      name: 'physioEvaluation',
      component: physioEvaluation,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		
		{
      path: '/physioServiceDetail',
      name: 'physioServiceDetail',
      component: physioServiceDetail,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/physioCertificate/:id',
      name: 'physioCertificate',
      component: physioCertificate,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/physioInviteCode',
      name: 'physioInviteCode',
      component: physioInviteCode,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/physioArtificerOrderList',
      name: 'physioArtificerOrderList',
      component: physioArtificerOrderList,
      meta: {
        keepAlive: true,
        requireLogin: true
      }
    },
		{
      path: '/physioArtificerMy',
      name: 'physioArtificerMy',
      component: physioArtificerMy,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/physioArtificerTimeSetting',
      name: 'physioArtificerTimeSetting',
      component: physioArtificerTimeSetting,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/physioWriteoff',
      name: 'physioWriteoff',
      component: physioWriteoff,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },

		{
      path: '/roomManageOrderList',
      name: 'roomManageOrderList',
      component: roomManageOrderList,
      meta: {
        keepAlive: true,
        requireLogin: true
      }
    },	
		{
      path: '/roomManageOrderDetail/:id',
      name: 'roomManageOrderDetail',
      component: roomManageOrderDetail,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/roomManageAddCheckIn',
      name: 'roomManageAddCheckIn',
      component: roomManageAddCheckIn,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/roomManageCheckIn/:id',
      name: 'roomManageCheckIn',
      component: roomManageCheckIn,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/roomManageRoomList',
      name: 'roomManageRoomList',
      component: roomManageRoomList,
      meta: {
        keepAlive: true,
        requireLogin: true
      }
    },
		{
      path: '/qrcodeOpenDoor',
      name: 'qrcodeOpenDoor',
      component: qrcodeOpenDoor,
      meta: {
        keepAlive: true,
        requireLogin: true
      }
    },
		{
      path: '/roomManageDirtyRoomList',
      name: 'roomManageDirtyRoomList',
      component: roomManageDirtyRoomList,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/reserveSetting',
      name: 'reserveSetting',
      component: reserveSetting,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },		
		{
      path: '/reserveSettingList',
      name: 'reserveSettingList',
      component: reserveSettingList,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/addRoom',
      name: 'addRoom',
      component: addRoom,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/productList',
      name: 'productList',
      component: productList,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/seckillList/:id',
      name: 'seckillList',
      component: seckillList,
      meta: {
        keepAlive: true,
        requireLogin: true
      }
    },
    {
      path: '/bigWheelList/:id',
      name: 'bigWheelList',
      component: bigWheelList,
      meta: {
        keepAlive: true,
        requireLogin: true
      }
    },
		{
      path: '/groupList/:id',
      name: 'groupList',
      component: groupList,
      meta: {
        keepAlive: true,
        requireLogin: true
      }
    },
		{
      path: '/seckillDetail/:id',
      name: 'seckillDetail',
      component: seckillDetail,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/promotionList/:id',
      name: 'promotionList',
      component: promotionList,
      meta: {
        keepAlive: true,
        requireLogin: true
      }
    },
		{
      path: '/applySupplier',
      name: 'applySupplier',
      component: applySupplier,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/payCode',
      name: 'payCode',
      component: payCode,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/applyAllocation',
      name: 'applyAllocation',
      component: applyAllocation,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/allocationRecord',
      name: 'allocationRecord',
      component: allocationRecord,
      meta: {
        keepAlive: true,
        requireLogin: true
      }
    },
		{
      path: '/allocationDetail/:id',
      name: 'allocationDetail',
      component: allocationDetail,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
		{
      path: '/allocationShipRecord',
      name: 'allocationShipRecord',
      component: allocationShipRecord,
      meta: {
        keepAlive: true,
        requireLogin: true
      }
    },
    {
      path: '/polymerization',
      name: 'polymerization',
      component: polymerization,
      meta: {
        keepAlive: false,
        requireLogin: true
      }
    },
    {
      path: '/404',
      name: 'notFound',
      component: notFound,
      meta: {
        keepAlive: true,
        requireLogin: false
      }
    },
    {
      path: '*', // 此处需特别注意置于最底部
      redirect: '/404'
    }
  ],
  scrollBehavior(to, from, savedPosition) {
    // 从第二页返回首页时savedPosition为undefined
    // if (savedPosition || typeof savedPosition === 'undefined') {
    //   // 只处理设置了路由元信息的组件
    //   from.meta.keepAlive = typeof from.meta.keepAlive === 'undefined' ? undefined : false
    //   to.meta.keepAlive = typeof to.meta.keepAlive === 'undefined' ? undefined : true
    //   if (savedPosition) {
    //     return savedPosition
    //   }
    // } else {
    //   from.meta.keepAlive = typeof from.meta.keepAlive === 'undefined' ? undefined : true
    //   to.meta.keepAlive = typeof to.meta.keepAlive === 'undefined' ? undefined : false
    // }

    // 在按下 后退/前进 按钮时，就会像浏览器的原生表现那样
    if (savedPosition) {
      return savedPosition
    } else {
      return {
        x: 0,
        y: 0
      }
    }
  }
})

export default router

